﻿using System.Collections.Generic;
namespace CGF
{
    public class Config
    {
        //提现银行列表
        public static Dictionary<EArea, Dictionary<string, string>> BankCodes = new Dictionary<EArea, Dictionary<string, string>>()
        {
            { EArea.Common, new Dictionary<string, string>() { } },
            { EArea.China, new Dictionary<string, string>() { } },
            { EArea.Brazil, new Dictionary<string, string>() { } },
            { EArea.India, new Dictionary<string, string>() { } },
            {
                EArea.Vietnam, new Dictionary<string, string>()
                {
                    { "VietinBank", "ICB" }, { "Vietcombank", "VCB" }, { "BIDV", "BIDV" }, { "Agribank", "VBA" }, { "OCB", "OCB" }, { "MBBank", "MB" }, { "Techcombank", "TCB" }, { "ACB", "ACB" }, { "VPBank", "VPB" }, { "TPBank", "TPB" }, { "Sacombank", "STB" }, { "HDBank", "HDB" }, { "VietCapitalBank", "VCCB" }, { "SCB", "SCB" }, { "VIB", "VIB" }, { "SHB", "SHB" }, { "Eximbank", "EIB" }, { "MSB", "MSB" }, { "CAKE", "CAKE" }, { "Ubank", "Ubank" }, { "Timo", "TIMO" }, { "ViettelMoney", "VTLMONEY" }, { "VNPTMoney", "VNPTMONEY" }, { "SaigonBank", "SGICB" }, { "BacABank", "BAB" }, { "PVcomBank", "PVCB" }, { "Oceanbank", "Oceanbank" }, { "NCB", "NCB" }, { "ShinhanBank", "SHBVN" }, { "ABBANK", "ABB" }, { "VietABank", "VAB" }, { "NamABank", "NAB" }, { "PGBank", "PGB" }, { "VietBank", "VIETBANK" }, { "BaoVietBank", "BVB" }, { "SeABank", "SEAB" }, { "COOPBANK", "COOPBANK" }, { "LienVietPostBank", "LPB" }, { "KienLongBank", "KLB" }, { "KBank", "KBank" }, { "UnitedOverseas", "UOB" }, { "StandardChartered", "SCVN" }, { "PublicBank", "PBVN" }, { "Nonghyup", "NHB HN" }, { "IndovinaBank", "IVB" }, { "IBKHCM", "IBK-HCM" }, { "IBKHN", "IBK-HN" }, { "VRB", "VRB" }, { "Woori", "WVN" }, { "KookminHN", "KBHN" }, { "KookminHCM", "KBHCM" }, { "HSBC", "HSBC" }, { "HongLeong", "HLBVN" }, { "GPBank", "GPB" }, { "DongABank", "DOB" }, { "DBSBank", "DBS" }, { "CIMB", "CIMB" }, { "CBBank", "CBB" }, { "Citibank", "CITIBANK" }, { "KEBHanaHCM", "KEBHANAHCM" }, { "KEBHANAHN", "KEBHANAHN" }, { "MAFC", "MAFC" }, { "VBSP", "VBSP" },
                }
            },
        };

        public const int WithdrawFeePercent = 2;
        public const float WithdrawFeePercentDiscount = 0.5f;
        public const int PreparingMinutes = 2;
        public const int LeaseMaxOneTimes = 50;
        public const string NumColor = "#D49C26";

        public class Info
        {
            public string APIBaseUrl;
            public string VideoPluginWsUrl;
            public string SellPushWsUrl;
            public string PayPack;
            public string PayAPI;
            public string PayQueryAPI;
            public string PaySecret;
            public string OnlineServiceUrl;
            public string WhatsAppNum;
            public string TelegramNum;
            public string AboutUsUrl;
            public string ShareLink;
            public int[] RechargeOptions;
            public int WithdrawMin;
        }

        public static Info Get
        {
            get
            {
                if (CGFConfig.Instance.ResServerType == EResServerType.TestServer)
                {
                    return test;
                }
                switch (CGFConfig.Instance.ReleaseArea)
                {
                    case EArea.China: return china;
                    case EArea.Brazil: return brazil;
                    case EArea.Vietnam: return vietnam;
                    case EArea.Common: return us;
                }
                return null;
            }
        }

        private static Info test = new Info()
        {
            APIBaseUrl = "http://192.168.10.16:8000",
            VideoPluginWsUrl = "ws://192.168.10.16:8000",
            SellPushWsUrl = "wss://192.168.10.16:8000/connection/websocket",
            PayPack = "app",
            PayAPI = "http://192.168.10.4:8787/api/payin",
            PayQueryAPI = "http://192.168.10.4:8787/api/payin/query",
            PaySecret = "3d7a36f2858c5f1d66af6d619227f051",
            OnlineServiceUrl = "https://192.168.10.16:8000/livechat?user_id=agent",
            WhatsAppNum = "https://wa.me/000000000000",
            TelegramNum = "https://t.me/aaaaaaaaa",
            AboutUsUrl = "https://www.aaa.xxx",
            ShareLink = "http://192.168.10.52:3000/down?code=__{code}",
            RechargeOptions = new[] { 500, 1000, 2000, 5000 },
            WithdrawMin = 100,
        };

        public static Info china = new Info()
        {
            APIBaseUrl = "https://api.wlyan.com",
            VideoPluginWsUrl = "wss://api.wlyan.com",
            SellPushWsUrl = "wss://push.wlyan.com/connection/websocket",
            PayPack = "app",
            PayAPI = "https://pay.wlyan.com/api/payin",
            PayQueryAPI = "https://pay.wlyan.com/api/payin/query",
            PaySecret = "3d7a36f2858c5f1d66af6d619227f051",
            OnlineServiceUrl = "https://chat.wlyan.com/livechat?user_id=agent",
            WhatsAppNum = "https://wa.me/0000000000",
            TelegramNum = "https://t.me/aaaaaaaaa",
            AboutUsUrl = "https://www.wlyan.com",
            ShareLink = "https://www.wlyan.com/down.html?code=__{code}",
            RechargeOptions = new[] { 500, 1000, 5000, 10000 },
            WithdrawMin = 100,
        };

        public static Info brazil = new Info()
        {
            APIBaseUrl = "https://api.mazoiai.com",
            VideoPluginWsUrl = "wss://api.mazoiai.com",
            SellPushWsUrl = "wss://push.mazoiai.com/connection/websocket",
            PayPack = "app",
            PayAPI = "https://pay.ajudabot.com/api/payin",
            PayQueryAPI = "https://pay.ajudabot.com/api/payin/query",
            PaySecret = "3d7a36f2858c5f1d66af6d619227f051",
            OnlineServiceUrl = "https://direct.lc.chat/19295152",
            WhatsAppNum = "https://wa.me/0000000000",
            TelegramNum = "https://t.me/aaaaaaaaa",
            AboutUsUrl = "https://www.mazoiai.com",
            ShareLink = "https://www.mazoiai.com/down.html?code=__{code}",
            RechargeOptions = new[] { 500, 1000, 2000, 5000 },
            WithdrawMin = 100,
        };

        public static Info vietnam = new Info()
        {
            APIBaseUrl = "https://api.ieeverai.com",
            VideoPluginWsUrl = "wss://api.ieeverai.com",
            SellPushWsUrl = "wss://push.ieeverai.com/connection/websocket",
            PayPack = "app",
            PayAPI = "https://pay.ieeverai.com/api/payin",
            PayQueryAPI = "https://pay.ieeverai.com/api/payin/query",
            PaySecret = "3d7a36f2858c5f1d66af6d619227f051",
            OnlineServiceUrl = "https://chat.ieeverai.com/livechat?user_id=agent",
            WhatsAppNum = "https://wa.me/0000000000",
            TelegramNum = "https://t.me/aaaaaaaaa",
            AboutUsUrl = "https://www.ieeverai.com",
            ShareLink = "https://www.ieeverai.com/down.html?code=__{code}",
            RechargeOptions = new[] { 500, 1000, 5000, 10000 },
            WithdrawMin = 100,
        };
        
        public static Info us = new Info()
        {
            APIBaseUrl = "https://api.usieai.com",
            VideoPluginWsUrl = "wss://api.usieai.com",
            SellPushWsUrl = "wss://push.usieai.com/connection/websocket",
            PayPack = "app",
            PayAPI = "https://pay.usieai.com/api/payin",
            PayQueryAPI = "https://pay.usieai.com/api/payin/query",
            PaySecret = "3d7a36f2858c5f1d66af6d619227f051",
            OnlineServiceUrl = "https://chat.usieai.com/livechat?user_id=agent",
            WhatsAppNum = "https://wa.me/0000000000",
            TelegramNum = "https://t.me/aaaaaaaaa",
            AboutUsUrl = "https://www.usieai.com",
            ShareLink = "https://www.usieai.com/down.html?code=__{code}",
            RechargeOptions = new[] { 500, 1000, 5000, 10000 },
            WithdrawMin = 100,
        };
    }
}
